#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class File : Business.BusinessBase<File, int>
	{
		#region Fields and Properties

		private String fileCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String FileCode
		{
			get { return fileCode; }
			set
			{
				if (value != fileCode)
				{
					MarkChanged("FileCode");
					fileCode = value;
				}
			}
		}

		private String departCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String DepartCode
		{
			get { return departCode; }
			set
			{
				if (value != departCode)
				{
					MarkChanged("DepartCode");
					departCode = value;
				}
			}
		}

		private String userCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String UserCode
		{
			get { return userCode; }
			set
			{
				if (value != userCode)
				{
					MarkChanged("UserCode");
					userCode = value;
				}
			}
		}

		private DateTime upLoadDate = DateTime.MinValue;
		/// <summary>
		/// 
		/// </summary>
		public DateTime UpLoadDate
		{
			get { return upLoadDate; }
			set
			{
				if (value != upLoadDate)
				{
					MarkChanged("UpLoadDate");
					upLoadDate = value;
				}
			}
		}

		private String fileCate = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String FileCate
		{
			get { return fileCate; }
			set
			{
				if (value != fileCate)
				{
					MarkChanged("FileCate");
					fileCate = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public File()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override File DataSelect(int id)
		{
			return Services.DALService.FileService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.FileService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.FileService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.FileService.Delete(this);
		}

		#endregion Base overrides
	}
}
